package com.jhgsys.internal.pm.service;

import com.jhgsys.internal.pm.entity.DemoBook;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 示例-图书 Service接口
 *
 * @author chenweihua
 * @date 2022-02-05 11:07:44
 */
public interface IDemoBookService extends IService<DemoBook> {
    /**
     * 查询（分页）
     * @author chenweihua
     * @date 2022-02-05 11:07:44
     * @param request QueryRequest
     * @param demoBook demoBook
     * @return IPage<DemoBook>
     */
    IPage<DemoBook> findDemoBooks(QueryRequest request, DemoBook demoBook);

    /**
     * 查询（所有）
     * @author chenweihua
     * @date 2022-02-05 11:07:44
     * @param demoBook demoBook
     * @return List<DemoBook>
     */
    List<DemoBook> findDemoBooks(DemoBook demoBook);

    /**
    * 根据ID查询
    * @author chenweihua
    * @date 2022-02-05 11:07:44
    * @param id
    * @return DemoBook
    */
    DemoBook findDemoBookById(Integer id);

    /**
     * 新增
     * @author chenweihua
     * @date 2022-02-05 11:07:44
     * @param demoBook demoBook
     */
    void createDemoBook(DemoBook demoBook);

    /**
     * 修改
     * @author chenweihua
     * @date 2022-02-05 11:07:44
     * @param demoBook demoBook
     */
    void updateDemoBook(DemoBook demoBook);

    /**
     * 逻辑删除
     * @author chenweihua
     * @date 2022-02-05 11:07:44
     * @param demoBook demoBook
     * @param demoBookIds demoBookIds
     */
    void deleteDemoBook(DemoBook demoBook,String demoBookIds);

    /**
    * 物理删除
    * @author chenweihua
    * @date 2022-02-05 11:07:44
    * @param demoBookIds demoBookIds
    */
    void physicallyDeleteDemoBook(String demoBookIds);
}
